<script setup>
import axios from 'axios'
import { ref } from 'vue';

let message = ref('');

async function fun() {
  let resp = await axios.post(
    'http://api.uomg.com/api/rand.qinghua', {},
    {
      params: {format: 'json'}, 
      headers: {Accept: 'application/json, text/plain, */*'}
    }
  )
  console.log(data)
  message.value = resp.data.content

}
</script>

<template>
  <div>
    <h4 v-text="message"></h4>
    <hr>
    <input type="button" @click="fun()" value="按钮">
    
  </div>
</template>

<style scoped>
</style>
